package com.jlanglang.glide.loaderdemo

import com.bumptech.glide.load.model.ModelLoader
import com.bumptech.glide.load.model.ModelLoaderFactory
import com.bumptech.glide.load.model.MultiModelLoaderFactory
import kotlin.reflect.KClass

class SimpleModelLoaderFactory<T,R>(private val zClass: KClass<out ModelLoader<T, R>>) : ModelLoaderFactory<T, R> {

    override fun build(multiFactory: MultiModelLoaderFactory): ModelLoader<T, R> {
        return zClass.java.newInstance()
    }

    override fun teardown() {

    }
}